package pack_text;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.text.DecimalFormat;

public class Text {
	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		BufferedWriter bw = new BufferedWriter(new FileWriter("a.txt"));
		String str = null;

		while ((str = br.readLine()) != null) {
			if ("over".equals(str))
				break;

			bw.write(str);

			bw.newLine();
			bw.flush();

		}
	}
}
